package com.jyy.prefabricated.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.entity.ExamCourse;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class ExamVo {

    private Integer id;

    private Integer projectId;

    private String projectName;

    private Integer pointId;

    private String pointName;

    private Integer paperId;

    private Boolean ifRandom;

    private String name;

    private Integer answerTime;

    private Integer examCount;

    private Double passGrade;

    private String examStartTime;

    private String examEndTime;

    private Integer status;

    private Integer examStatus;

    private String teamCode;

    /**
     * 原价
     */
    private BigDecimal listPrice;

    /**
     * 售价
     */
    private BigDecimal price;

    /**
     * 封面
     */
    private String pic;

    /**
     * 简介
     */
    private String content;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 成绩展示(1批改完成后立即展示;2隐藏)
     */
    private Integer gradeStatus;
    /**
     * 题目展示(1提交考试后立即展示;2提交且批改完成后展示;3隐藏)
     */
    private Integer questionStatus;
    /**
     * 答案展示(1提交考试后立即展示;2考试结束后立即展示;3提交且批改完成后展示4.隐藏)
     */
    private Integer answerStatus;

    /**
     * 关联课程
     */
    private List<Integer> courseList = new ArrayList<>();

    /**
     * 返回关联项目或课程集合
     */
    private List<ExamCourse> goodsList = new ArrayList<>();
}